<?php /*a:3:{s:83:"E:\project_git\data_management_background\application\store\view\channel\index.html";i:1577345708;s:74:"E:\project_git\data_management_background\application\admin\view\main.html";i:1577345708;s:90:"E:\project_git\data_management_background\application\store\view\channel\index_search.html";i:1577345708;}*/ ?>
<div class="layui-card layui-bg-gray"><?php if(!(empty($title) || (($title instanceof \think\Collection || $title instanceof \think\Paginator ) && $title->isEmpty()))): ?><div class="layui-card-header layui-anim layui-anim-fadein notselect"><span class="layui-icon layui-icon-next font-s10 color-desc margin-right-5"></span><?php echo htmlentities((isset($title) && ($title !== '')?$title:'')); ?><div class="pull-right"></div></div><?php endif; ?><div class="layui-card-body layui-anim layui-anim-upbit"><style>    .store-total-container {
        font-size: 14px;
        margin-bottom: 20px;
        letter-spacing: 1px;
    }
    .store-total-container .store-total-item > div:nth-child(2) {
        font-size: 46px;
        line-height: 46px;
    }
    @media screen and (min-device-width: 992px) {
        .game_distribution {
            width: 50%;
        }
    }
    ::-webkit-scrollbar {width: 10px;height: 10px;background-color: rgba(240, 240, 240, 1);}
</style><div class="think-box-shadow"><fieldset><legend>条件搜索</legend><form class="layui-form layui-form-pane form-search" action="<?php echo request()->url(); ?>" onsubmit="return false" method="get" autocomplete="off"><div class="layui-form-item layui-inline" ><label class="layui-form-label">时间</label><div class="layui-input-inline"><input data-date-input name="search_time" value="<?php echo htmlentities((app('request')->get('search_time') ?: $start_time)); ?>" placeholder="请选择时间" class="layui-input" ></div></div><div class="layui-form-item layui-inline" ><button class="layui-btn layui-btn-primary"><i class="layui-icon">&#xe615;</i> 搜 索</button><button type="button" data-reload class="layui-btn layui-btn-xs">刷 新</button></div></form><script>form.render()</script></fieldset><?php if(!(empty($user_today_list) || (($user_today_list instanceof \think\Collection || $user_today_list instanceof \think\Paginator ) && $user_today_list->isEmpty()))): ?><div class="layui_table_width_scroll_36" ><table class="layui-table" lay-skin="line" ><thead><tr><th class="text-left">日期</th><th class="text-left">渠道</th><th class="text-left nowrap">活跃人数</th><th class='text-left nowrap'>新增人数</th><th class='text-left nowrap'>付费金额</th><th class='text-left nowrap'>付费次数</th><th class='text-left nowrap'>付费人数</th><th class='text-left'>新用户付费金额</th><th class='text-left'>新用户付费人数</th><th class='text-left'>新增用户游戏在线时长(分钟)</th><th class='text-left'>新增用户游戏平均在线时长(分钟)</th></tr></thead><tbody><?php foreach($user_today_list as $key=>$vo): ?><tr><td class='text-left nowrap'><span class="color-blue"><?php echo htmlentities($vo['time']); ?></span></td><td class='text-left nowrap'><?php if($vo['channel_name'] == '0'): ?>                    官方-0-渠道
                    <?php else: ?><?php echo htmlentities($vo['channel_name']); ?><?php endif; ?></td><td class='text-left nowrap'><?php echo htmlentities($vo['logincount']); ?></td><td class='text-left nowrap'><?php echo htmlentities($vo['newcount']); ?></td><td class='text-left nowrap'><?php if($vo['recharge'] == '0'): ?>                    --
                    <?php else: ?><span class="color-red"><?php echo htmlentities($vo['recharge']); ?>￥</span><?php endif; ?></td><td class='text-left nowrap'><?php echo htmlentities($vo['recharge_time']); ?></td><td class='text-left nowrap'><?php echo htmlentities($vo['recharge_count']); ?></td><td class='text-left nowrap'><?php echo htmlentities($vo['new_recharge']); ?></td><td class='text-left nowrap'><?php echo htmlentities($vo['new_recharge_count']); ?></td><td class='text-left nowrap'><?php if($vo['add_user_online_time'] == '0'): ?>                    --
                    <?php else: ?><span class="color-green"><?php echo htmlentities($vo['add_user_online_time']); ?>分钟</span><?php endif; ?></td><td class='text-left nowrap'><?php if($vo['add_user_online_avg_time'] == '0'): ?>                    --
                    <?php else: ?><span class="color-blue"><?php echo htmlentities($vo['add_user_online_avg_time']); ?>分钟</span><?php endif; ?></td></tr><?php endforeach; ?></tbody></table></div><table class="layui-table margin-top-10" lay-skin="line" ><thead><tr><th class="text-left nowrap" style="padding-left: 3em;" >合计</th><th class='text-left nowrap'>活跃人数:<?php echo array_sum(array_column($user_today_list,'logincount')); ?></th><th class='text-left nowrap'> 新增人数:<?php echo array_sum(array_column($user_today_list,'newcount')); ?></th><th class='text-left nowrap'>付费金额:<?php echo array_sum(array_column($user_today_list,'recharge')); ?></th><th class='text-left '>付费次数:<?php echo array_sum(array_column($user_today_list,'recharge_time')); ?></th><th class='text-left '>付费用户:<?php echo array_sum(array_column($user_today_list,'recharge_count')); ?></th><th class='text-left '>新用户付费金额:<?php echo array_sum(array_column($user_today_list,'new_recharge')); ?></th><th class='text-left '>新用户付费人数:<?php echo array_sum(array_column($user_today_list,'new_recharge_count')); ?></th></tr></thead></table><div class="think-box-shadow store-total-container notselect"><div class="layui-row layui-col-space15"><div class="margin-bottom-15">玩家充值分布 <b style="font-size: 12px;color: #ccc;"></b></div><div id="user_recharge" style="height:550px;"></div></div><div class="layui-row layui-col-space15"><div class="layui-col-sm6 layui-col-md2 game_distribution" ><div class="margin-bottom-15">新增玩家分布 <b style="font-size: 12px;color: #ccc;"></b></div><div id="game_Billing_point" style="height:550px;"></div></div><div class="layui-col-sm6 layui-col-md2 game_distribution"><div class="margin-bottom-15">活跃玩家分布 <b style="font-size: 12px;color: #ccc;"></b></div><div id="games_recharge" style="height:550px;"></div></div></div></div><script>            require(['echarts'], function (echarts, chart) {
                chart = echarts.init(document.getElementById('user_recharge'));
                window.onresize = chart.resize;
                var seriesLabel = {
                    normal: {
                        show: true,
                        textBorderWidth: 1
                    }
                }
                option = {
                    tooltip: {
                        trigger: 'axis',
                        axisPointer: {
                            type: 'shadow'
                        }
                    },
                    legend: {
                        data: eval('<?php echo json_encode($user_data_info['myrecharge']['channel_name']); ?>')
                    },
                    grid: {
                        left: 180
                    },
                    toolbox: {
                        show: true,
                        feature: {
                            saveAsImage: {}
                        }
                    },
                    xAxis: {
                        type: 'value',
                        axisLabel: {
                            formatter: '{value}'
                        },
                        splitLine: {
                            lineStyle: {
                                type: 'dashed',
                            }
                        }
                    },
                    yAxis: {
                        type: 'category',
                        inverse: true,
                        data: eval('<?php echo json_encode($user_data_info['myrecharge']['channel_name']); ?>'),
                        axisLabel: {
                            margin: 20,
                            rich: {
                                value: {
                                    lineHeight: 50,
                                    align: 'left'
                                },
                            }
                        }
                    },
                    series: [
                        {
                            type: 'bar',
                            label: seriesLabel,
                            data: eval('<?php echo json_encode($user_data_info['myrecharge']['data']); ?>'),
                            itemStyle: {
                                normal: {
                                    borderWidth: 1,
                                    color: '#dd7538'
                                }
                            }
                        }
                    ]
                };
                chart.setOption(option);
            });
        </script><script>            require(['echarts'], function (echarts, chart) {
                chart = echarts.init(document.getElementById('game_Billing_point'));
                window.onresize = chart.resize;
                var seriesLabel = {
                    normal: {
                        show: true,
                        textBorderWidth: 1
                    }
                }
                option = {
                    tooltip: {
                        trigger: 'axis',
                        axisPointer: {
                            type: 'shadow'
                        }
                    },
                    legend: {
                        data: eval('<?php echo json_encode($user_data_info['mynewcount']['channel_name']); ?>')
                    },
                    grid: {
                        left: 180
                    },
                    toolbox: {
                        show: true,
                        feature: {
                            saveAsImage: {}
                        }
                    },
                    xAxis: {
                        type: 'value',
                        axisLabel: {
                            formatter: '{value}'
                        },
                        splitLine: {
                            lineStyle: {
                                type: 'dashed',
                                color: '#cccccc'
                            }
                        }
                    },
                    yAxis: {
                        type: 'category',
                        inverse: true,
                        data: eval('<?php echo json_encode($user_data_info['mynewcount']['channel_name']); ?>'),
                        axisLabel: {
                            margin: 20,
                            rich: {
                                value: {
                                    lineHeight: 10,
                                    align: 'left'
                                },
                            }
                        }
                    },
                    series: [
                        {
                            type: 'bar',
                            label: seriesLabel,
                            data: eval('<?php echo json_encode($user_data_info['mynewcount']['data']); ?>'),
                            itemStyle: {
                                normal: {
                                    borderWidth: 1,
                                    color: '#1E41FF'
                                }
                            }
                        }
                    ]
                };
                chart.setOption(option);
            });
        </script><script>            require(['echarts'], function (echarts, chart) {
                chart = echarts.init(document.getElementById('games_recharge'));
                window.onresize = chart.resize;
                var seriesLabel = {
                    normal: {
                        show: true,
                        textBorderWidth: 1
                    }
                }
                option = {
                    tooltip: {
                        trigger: 'axis',
                        axisPointer: {
                            type: 'shadow'
                        }
                    },
                    legend: {
                        data: eval('<?php echo json_encode($user_data_info['mylogincount']['channel_name']); ?>')
                    },
                    grid: {
                        left: 180
                    },
                    toolbox: {
                        show: true,
                        feature: {
                            saveAsImage: {}
                        }
                    },
                    xAxis: {
                        type: 'value',
                        axisLabel: {
                            formatter: '{value}'
                        },
                        splitLine: {
                            lineStyle: {
                                type: 'dashed',
                            }
                        }
                    },
                    yAxis: {
                        type: 'category',
                        inverse: true,
                        data: eval('<?php echo json_encode($user_data_info['mylogincount']['channel_name']); ?>'),
                        axisLabel: {
                            margin: 20,
                            rich: {
                                value: {
                                    lineHeight: 10,
                                    align: 'left'
                                },
                            }
                        }
                    },
                    series: [
                        {
                            type: 'bar',
                            label: seriesLabel,
                            data: eval('<?php echo json_encode($user_data_info['mylogincount']['data']); ?>'),
                            itemStyle: {
                                normal: {
                                    borderWidth: 3,
                                    color: '#159077'
                                }
                            }
                        }
                    ]
                };
                chart.setOption(option);
            });
        </script><?php else: ?><span class="notdata">没有记录哦</span><?php endif; ?></div></div>